"""Tests that TAPA fast cosim can resume from generated work directory."""

# Copyright (c) 2025 RapidStream Design Automation, Inc. and contributors.
# All rights reserved. The contributor(s) of this file has/have agreed to the
# RapidStream Contributor License Agreement.

sh_test(
    name = "resume-xosim-test",
    srcs = ["//bazel:v++_env.sh"],
    args = [
        "$(location :resume-xosim-test.sh)",
        "$(location //tests/apps/vadd:vadd-host)",
        "--bitstream=$(location //tests/apps/vadd:vadd-xo)",
        "--xosim_executable=$(location //tapa/cosim:tapa-fast-cosim)",
        "1000",
    ],
    data = [
        ":resume-xosim-test.sh",
        "//tapa/cosim:tapa-fast-cosim",
        "//tests/apps/vadd:vadd-host",
        "//tests/apps/vadd:vadd-xo",
    ],
)
